Using RTX64 Code Snippets in Visual Studio

RTX64 provides a collection of code snippets that can be inserted where you need them in your code.

The following snippets are available:

Snippet Name Syntax Inserted
RtCreateProcessRTX64Snippet
BOOL RtCreateProcess(
    LPCTSTR lpApplicationName,
    LPTSTR lpCommandLine,
    LPSECURITY_ATTRIBUTES lpProcessAttributes,
    LPSECURITY_ATTRIBUTES lpThreadAttributes,
    BOOL bInheritHandles,
    DWORD dwCreationFlags,
    LPVOID lpEnvironment,
    LPCTSTR lpCurrentDirectory,
    LPSTARTUPINFO lpStartupInfo,
    LPPROCESS_INFORMATION lpProcessInformation
);

NOTE: The pathname to the application must be contained within quotation marks.

CreateThreadRTX64Snippet
HANDLE CreateThread(
    LPSECURITY_ATTRIBUTES lpThreadAttributes,
    DWORD StackSize,
    LPTHREAD_START_ROUTINE lpStartAddress,
    LPVOID lpParameter,
    DWORD dwCreationFlags,
    LPDWORD lpThreadId
);
RtCreateTimerRTX64Snippet
HANDLE RtCreateTimer(
    PSECURITY_ATTRIBUTES pThreadAttributes,
    ULONG StackSize,
    VOID (RTFCNDCL *Routine) (PVOID context),
    PVOID Context,
    ULONG Priority,
    CLOCK Clock
);
RtAttachInterruptRTX64Snippet
HANDLE RtAttachInterrupt(
    PATTACH_INTERRUPT_PARAMETERS Parameters
);

To insert a code snippet:

  1. Place your cursor where you want to insert the code snippet.
  2. Right-click and select Insert Snippet (or use Ctrl+K).
  3. Select the IntervalZero snippet folder, select the snippet you want to insert, and press the Tab or Enter key.

The syntax for the selected snippet is inserted. Code that can be changed appears highlighted in yellow. Press the Tab key to jump between highlighted code segments. Press the Enter key when you are finished editing.

Partial capture shown

Related topics: